<layout name="master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">商品管理</a></li>
    <li class="active">商品列表</li>
</ul>
<div class="col-sm-12">
    <section class="panel panel-default">
        <header class="panel-heading font-bold">商品列表</header>
        <div class="panel-body">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><a href="{:u('admin/goods/add')}" class="btn btn-success btn-xs">添加商品</a></h3>
                </div>

            </div>
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>gid</th>
                    <th width="20%">商品名称</th>
                    <th>缩略图</th>
                    <th>价格</th>
                    <th>库存</th>
                    <th>货号</th>
                    <th>时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="goodsList" id="gl">
                    <tr>
                        <td>{$gl['gid']}</td>
                        <td>{$gl['gname']}</td>
                        <td><img style="width:30px" src="__ROOT__/{$gl['pic']}" alt=""></td>
                        <td>
                            <ul style="padding:0">
                                <li>市场价：{$gl['marketprice']}</li>
                                <li>商城价：{$gl['shopprice']}</li>
                            </ul>
                        </td>
                        <td>
                            {$gl['total']}
                        </td>
                        <td>
                            {$gl['gnumber']}
                        </td>
                        <td>
                            {$gl['time']|date="y/m/d",###}
                        </td>
                        <td>

                            <!-- Single button -->
                            <div class="btn-group">
                                <button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown">
                                    操作 <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="{:u('admin/goodsList/lists',['gid'=>$gl['gid'],'tid'=>$gl['tid']])}">货品列表</a></li>
                                    <li><a href="#">编辑</a></li>
                                    <li><a href="#">删除</a></li>
                                </ul>
                            </div>

                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </section>
</div>
</div>